package com.cl.utility.util;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;

/**
 * @author liddhappy
 * @description
 * @createTime 2022/11/26 10:41
 */
public class CashUtils {
    @Autowired(required = false)
    private RedisTemplate redisTemplate;

    public void set(String key, Object value) {
        this.redisTemplate.opsForValue().set(key, value);
    }
}
